<?php

Yii::import('application.models._base.BaseCustomerInfo');


class CustomerInfoEgunner extends BaseCustomerInfo
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	public function relations() {
		return array(
			'Customer'=>array(self::BELONGS_TO, 'Customer', 'id'),
		);
    }	
    public function rules() {
		return array(
// 		    array('phone,first_name,last_name','required'),
// 		    array('birthday','required'),		    
			array('first_name,last_name,address,city,phone,zip_code,birthday,states,BIO', 'safe'), 
			// array('zip_code', 'length', 'max'=>6),
			// array('zip_code,phone', 'numerical', 'integerOnly'=>true),
			//array('phone','match','pattern'=>'/^[0-9]{10}$/','message'=>'Phone wrong format'),
// 			array('zip_code','match','pattern'=>'/^[0-9]{5}$/','message'=>'Zip_code wrong format'),		    
		);
	}
	
}

